/**
 * Prints the word "MISSISSIPPI", vertically, in large letters.  Static 
 * methods are used to reduce the amount of redundancy.
 */
public class PrintMississippi {


	// --------------------------------
	// ----- ENTER YOUR CODE HERE -----
	// --------------------------------

	public static void main(String[] args) {
	    drawM();
	    System.out.println();
	    drawI();
	    System.out.println();
	    drawS();
	    System.out.println();
	    drawS();
	    System.out.println();
	    drawI();
	    System.out.println();
	    drawS();
	    System.out.println();
	    drawS();
	    System.out.println();
	    drawI();
	    System.out.println();
	    drawP();
	    System.out.println();
	    drawP();
	    System.out.println();
	    drawI();
	}
	  
	public static void drawM() {
	    System.out.println("M     M");
	    System.out.println("MM   MM");
	    System.out.println("M M M M");
	    System.out.println("M  M  M");
	    System.out.println("M     M");
	    System.out.println("M     M");
	    System.out.println("M     M");
	   }
	   
	public static void drawI() {
	    System.out.println(" IIIII");
	    System.out.println("   I");
	    System.out.println("   I");
	    System.out.println("   I");
	    System.out.println("   I");
	    System.out.println("   I");
	    System.out.println(" IIIII");
	   }
	   
	 public static void drawS() {
	     System.out.println(" SSSSS ");
	     System.out.println("S     S");
	     System.out.println("S");
	     System.out.println(" SSSSS ");
	     System.out.println("      S");
	     System.out.println("S     S");
	     System.out.println(" SSSSS ");
	   }
	   
	 public static void drawP() {
	     System.out.println("PPPPPP");
	     System.out.println("P     P");
	     System.out.println("P     P");
	     System.out.println("PPPPPP");
	     System.out.println("P");
	     System.out.println("P");
	     System.out.println("P");
	   }
	     

	// --------------------------------
	// --------- END USER CODE --------
	// --------------------------------


}